package cn.wolfcode.p2p.base.mapper;

import cn.wolfcode.base.BaseMapper;
import cn.wolfcode.p2p.base.domain.LoginInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value = "loginInfoMapper")
public interface LoginInfoMapper extends BaseMapper<LoginInfo> {
    int selectByUsername(String username);

    LoginInfo selectByUsernameAndPassword(@Param("username") String username,
                                          @Param("password") String password,
                                          @Param("userType") Integer userType);

    int selectByUserType(int userType);

    List<LoginInfo> selectCustomeServices();
}